using System;
using UnityEngine;
using UnityEngine.UI;

public class LoginView : View
{
    Button Btn_continue;
    public override void Awake()
    {
        base.Awake();
        var newGame = transform.Find("NewGame").GetComponent<Button>();

        
        newGame.onClick.AddListener(() =>
        {
            //打开loading
            //切换场景 
            //更新场景的加载进度
            GameSystem.Instance.sceneController.Load("Game");
        });


        Btn_continue = transform.Find("Continue").GetComponent<Button>();
        Btn_continue.onClick.AddListener(() =>
        {
            
            
        });

    }


    public override void OnDestory()
    {
        base.OnDestory();
    }

    public override void OnDisable()
    {
        base.OnDisable();
    }

    public override void OnEnable()
    {
        base.OnEnable();
    }

    public override void Start()
    {
        base.Start();
    }

    public override void Update()
    {
        base.Update();
    }
}
